package net.lab1024.sa.admin.module.business.erp.bas.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Data;

/**
 * BOM表 实体类
 *
 * @Author AKITA
 * @Date 2025-08-11 22:28:03
 * @Copyright AKITA
 */

@Data
@TableName("bomord")
public class BomordEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String bomId;
    private String bomName;
    private String parentId;
    private Integer sort;
    private String remark;
    private String docStatus;
    private Integer version;
    private Long objId;
    private String objName;
    @TableField(fill = FieldFill.INSERT)
    private Long createById;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateById;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private List<BomordEntity> children;
    private BigDecimal qty;
    private String unit;
    private String specs;
}
